package com.bangcommunity.bbframe.monitor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author tanghc
 * @date 18/1/25
 */
public class LogContext {
    Logger logger = LoggerFactory.getLogger("mlog");
    private LogContext(){}
    private static  class MLogHolder{
        private static LogContext instance = new LogContext();
    }
    public static LogContext getInstance(){
        return MLogHolder.instance;
    }
    ThreadLocal<>

    public void start(String productCode,String appCode,String key,Object[] arg){

    }

    public void exception(Throwable throwable){

    }

    public void finish(boolean isSucc,Object result){
        if(isSucc){
            succ(result);
        }else{
            fail(result);
        }
    }

    public void succ(Object result){

    }
    public void fail(Object result){

    }
}
